]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add .editorconfig
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 22 Jan 2024 20:36:29 +0000 (21:36 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 25 Jan 2024 16:53:36 +0000 (16:53 +0000)
This should ensure that all editors which support
https://editorconfig.org/ use the correct indentation
with spaces (not tabs) by default.

This is hardly a full specification of our coding style,
but it's a correct subset and better than nothing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3137>

.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..600cff8
--- /dev/null
@@ -0,0 +1,23 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+
+indent_style = space
+trim_trailing_whitespace = true
+
+[*.js]
+indent_size = 4
+
+[*.[ch]]
+indent_size = 2
+
+[*.gresource.xml]
+indent_size = 2
+
+[*.ui]
+indent_size = 2
+
+[meson.build]
+indent_size = 2